package com.vend.good.presenter

import android.content.Context
import android.os.Bundle
import com.vend.common.constant.CustomConstant
import com.vend.common.mvp.IPresenter
import com.vend.good.view.GoodView

/**
 * Created by glendal on 2022/01/26.
 * 简单的逻辑处理
 */
class GoodFragmentPresenter(var self: Context, val v: GoodView, var b: Bundle?) : IPresenter {
    override fun start() {

    }

    fun initArgument() {
        //初始化懒加载的逻辑处理
        if (b?.containsKey(CustomConstant.IS_VIEW_PAGE) == true) {
            v.setViewPageStatue(b!!.getBoolean(CustomConstant.IS_VIEW_PAGE, true))
        }
    }

    override fun stop() {

    }
}